
<div class="tableform clearfix">
    

    <div class="division clearfix">
    
        <form action="index.php?<{$env.server.QUERY_STRING}>" method="post">
        
            <input type="hidden" name="act_mode" value="batchDeleteGoods" />
    
            <div class="span-auto" style="padding-bottom:1em;">                
                <button type="button" class="btn btn-primary" onclick="new Dialog('index.php?app=tags&ctl=admin_tags&act=batch_add&p[0]=<{$tag_id}>&finder_id=<{$env.get.finder_id}>',{width:550,height:300,title:'<{t}>批量添加<{/t}>',onClose:function(){finderGroup['<{$env.get.finder_id}>'].refresh();}})">
                <span>
                <span>批量添加</span></span>
                </button>
                
                &nbsp;&nbsp;&nbsp;&nbsp;
                
                <{button type="submit" label="批量删除" class="btn btn-primary" }>
                
                &nbsp;&nbsp;&nbsp;&nbsp;
                
                共计 <{$total_goods_num}> 个商品

            </div>
            
            <div >
                <table class="gridlist" width="100%" border="0">
                    <thead>
                    <tr>
                        <th>
                            <label>
                            <input id="checkAllTagGoods" type="checkbox" />
                            <{t}>选择<{/t}>
                            </label>
                        </th>
                        <th><{t}>商品名称<{/t}></th>
                        <th><{t}>商品编号<{/t}></th>
                        <th><{t}>编辑<{/t}></th>
<!--
                        <th><{t}>关联商品图片<{/t}></th>
-->
                    </tr></thead>
                    <tbody id="allTagGoods">
                    <{if $goodsTagList}>
                    <{foreach from=$goodsTagList item=item}>
                    <tr>
                        <td>
                            <input type="checkbox" name="item_ids[]" value="<{$tag_id}>###<{$item.goods_id}>" />
                        </td>
                        <td><{$item.goods_name}></td>
                        <td><{$item.goods_bn}></td>
                        <td><a class="opt" href="index.php?app=tags&ctl=admin_tags&act=deleteGoods&id=<{$item.goods_id}>&tag_id=<{$tag_id}>" >删除</a></td>
                    </tr>
                    <{/foreach}>
                    <{/if}>
                    <tbody>
                </table>
            </div>
            
        </form>

    </div>
    
    <{$pager}>

    <div class="division">

    </div>

</div>
    
    <script>
    
    (function(){
    
        $('checkAllTagGoods').addEvent('click', function(){
            $$('#allTagGoods input').set('checked', $(this).checked);
        });
        
    })();
    
    </script>
